<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>仓鼠网上投票系统HVPMS</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="css/getPassword.jsp.css" />
<script src="js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/getPassword.jsp.js"></script>
</head>
<body>
<div id="num3">
	<img src="images/banner1.png">
</div>
<div id="num2">
	<h2>注册用户-重置密码</h2>
	<span>
	<%
		String ok = (String)request.getAttribute("message_ok");
		if(ok!=null){
			out.println("["+ok+"],请到<a href=index.jsp>登录页面</a>登录到系统");
		}
		String systemerror = (String)request.getAttribute("message_systemerror");
		if(systemerror!=null){
			out.println("["+systemerror+"]");
		}
		String gpanswnoright = (String)request.getAttribute("message_gpanswnoright");
		if(gpanswnoright!=null){
			out.println("["+gpanswnoright+"]");
		}
		String gpquesnoright = (String)request.getAttribute("message_gpquesnoright");
		if(gpquesnoright!=null){
			out.println("["+gpquesnoright+"]");
		}
		String noexist = (String)request.getAttribute("message_noexist");
		if(noexist!=null){
			out.println("["+noexist+"]");
		}
	%>
	</span>
	<hr class="top_hr">
</div>
<div id="num1">
<form id="getPassword" action="GetPassword" method="POST">
<table>
<tr>
	<th>账号</th>
	<td><input type="text" name="username" id="userName"/><span id="span_username"></span></td>
</tr>
<tr><td colspan="2"><hr class="cut_hr"></td></tr>
<tr>
	<th>提示问题</th>
	<td>
	<select name="gp_ques" id="gpQues">
	<option value="" selected="selected">--请选择密码查询问题--</option>
	<option value="1">我的宠物名字？</option>
    <option value="2">我最好的朋友是谁？</option>
    <option value="3">我最喜爱的颜色？</option>
    <option value="4">我最喜爱的电影？</option>
    <option value="5">我最喜爱的影星？</option>
    <option value="6">我最喜爱的歌曲？</option>
    <option value="7">我最喜爱的食物？</option>
    <option value="8">我最大的爱好？</option>
    <option value="9">我中学校名全称是什么？</option>
    <option value="10">我的座右铭是？</option>
    <option value="11">我最喜欢的小说的名字？</option>
    <option value="12">我最喜欢的卡通人物名字？</option>
    <option value="13">我母亲或父亲的生日？</option>
    <option value="14">我最欣赏的一位名人的名字？</option>
    <option value="15">我最喜欢的运动队全称？</option>
    <option value="16">我最喜欢的一句影视台词？</option>
	</select>
	<span id="span_gpQues"></span>
	</td>
</tr>
<tr>
	<th>答案</th>
	<td><input type="text" name="gp_answ" id="gpAnsw"/><span id="span_gpAnsw"></span></td>
</tr>
<tr><td colspan="2"><hr class="cut_hr"></td></tr>
<tr>
	<td colspan="2" align="center">
	<input type="button" value="提交" onclick="validateToSubmit()"/>&nbsp;&nbsp;
	<input type="reset" value="重置"/>
	</td>
</tr>
</table>	
</form>
</div>
</body>
</html>